package com.project.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.project.bean.CartBean;
import com.project.bean.DetailBean;
import com.project.bean.OrderBean;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface IDetailMapper extends BaseMapper<DetailBean> {
    public void addMore(@Param("orderId") Integer orderId,
                        @Param("cartList") List<CartBean> cartList);

    public List<DetailBean> findByOrderId(Integer orderId);
}
